/**
 * http://usejsdoc.org/
 */
var context = require("../module/context_mock.js");
var should = require("should");

describe('Global', function() {
	  it('Set Global', function() {
		  var arg = "";
		  context.global.set("TEST_KEY", "TEST_VAL");
		  context.global.should.have.properties("TEST_KEY");
	  });
	  it('Get Global', function() {
		  context.global.set("TEST_KEY1", "TEST_VAL");
		  context.global.get("TEST_KEY1").should.equal("TEST_VAL");
	  });
	  it('Get Global No Set', function() {
		  should.not.exist(context.global.get("TEST_KEY2"));
	  });
});

describe('Flow', function() {
	  it('Set flow', function() {
		  var arg = "";
		  context.flow.set("TEST_KEY", "TEST_VAL");
		  context.flow.should.have.properties("TEST_KEY");
	  });
	  it('Get flow', function() {
		  context.flow.set("TEST_KEY1", "TEST_VAL");
		  context.flow.get("TEST_KEY1").should.equal("TEST_VAL");
	  });
	  it('Get flow No Set', function() {
		  should.not.exist(context.flow.get("TEST_KEY2"));
	  });
});